from turtle import *
for i in range(10):
    forward(100)
    left(90)
    forward(10)
    left(90)
    forward(100)
    right(90)
    forward(10)
    right(90)

# undo() 撤销操作
for i in range(30):
    undo()

done()